import request from '~/utils/request';

//所有流程列表
export function getProcessDataAll(data) {
    return request({
        url: '/Process/GetProcessDataAll',
        method: 'post',
        data,
    });
}

//设置流程状态
export function setProcessState(data) {
    return request({
        url: '/Process/SetProcessState',
        method: 'post',
        data,
    });
}

//项目审核流程明细
export function getOrderProcessItem(data) {
    return request({
        url: '/Process/GetOrderProcessItem',
        method: 'post',
        data,
    });
}

//项目审核流程明细
export function getProjectProcessItem(data) {
    return request({
        url: '/Process/GetProjectProcessItem',
        method: 'post',
        data,
    });
}

//流程明细列表
export function getProcessItemList(data) {
    return request({
        url: '/Process/GetProcessItemList',
        method: 'post',
        data,
    });
}

//流程明细单条记录
export function getProcessItemInfo(id) {
    return request({
        url: '/Process/GetProcessItemInfo?ProcessItemID=' + id,
        method: 'get',
    });
}

//流程明细保存
export function saveProcessItemInfo(data) {
    return request({
        url: '/Process/SaveProcessItemInfo',
        method: 'post',
        data,
    });
}

//流程明细状态设置
export function setProcessItemState(data) {
    return request({
        url: '/Process/SetProcessItemState',
        method: 'post',
        data,
    });
}

//流程日志保存
export function saveProcessLogInfo(data) {
    return request({
        url: '/Process/SaveProcessLogInfo',
        method: 'post',
        data,
    });
}

//订单审核流程日志
export function getOrderAuditLog(data) {
    return request({
        url: '/Process/GetOrderAuditLog',
        method: 'post',
        data,
    });
}

//商品审核流程日志
export function getProductAuditLog(data) {
    return request({
        url: '/Process/GetProductAuditLog',
        method: 'post',
        data,
    });
}

//厂家审核流程日志
export function getFactoryAuditLog(data) {
    return request({
        url: '/Process/GetFactoryAuditLog',
        method: 'post',
        data,
    });
}
